package cn.caixiong.org.mapper;

import cn.caixiong.org.domain.Department;
import cn.caixiong.org.query.BaseQuery;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import javax.persistence.Id;
import java.util.List;

public interface DepartmentMapper extends Mapper<Department> {
    //查询部门经理和上级部门
    List<Department> findPage(BaseQuery query);
    //批量删除
    void deleteAll(@Param("ids") Long[] ids);
    //高级查询上级部门
    List<Department> parentDept();

}

